#ifndef TRANSMIT_H
#define TRANSMIT_H

#include <QObject>
#include "serialport.h"

enum ByteType {
    integer,
    character
};

class Transmit : public QObject
{
    Q_OBJECT
public:
    explicit Transmit(SerialPortInterface::SerialPort *serialport, QObject *parent = 0);

signals:
    void BufferSended(QString);
public slots:
    void Send();
    void updateBuffer(QString string);
    void ByteTypeinteger();
    void ByteTypecharacter();
private:
    SerialPortInterface::SerialPort *serialport;
    ByteType bytetype;

    QString buf;
};

#endif // TRANSMIT_H
